import request from '@/router/axios'

export function checkOptionFetchList(query) {
  return request({
    url: '/admin/checkOption/page',
    method: 'get',
    params: query
  })
}
export function checkOptionFetchOption(query) {
  return request({
    url: '/admin/checkOption/tree',
    method: 'get',
    params: query
  })
}
export function checkOptionAddObj(obj) {
  return request({
    url: '/admin/checkOption/saveInfo',
    method: 'post',
    data: obj
  })
}

export function checkOptionGetObj(id) {
  return request({
    url: '/admin/checkOption/' + id,
    method: 'get'
  })
}

export function checkOptionDelObj(id) {
  return request({
    url: '/admin/checkOption/' + id,
    method: 'delete'
  })
}

export function checkOptionPutObj(obj) {
  return request({
    url: '/admin/checkOption/updateInfo',
    method: 'put',
    data: obj
  })
}

export function checkOptionListByItem(id) {
  return request({
    url: '/admin/checkOption/listByItem/'+id,
    method: 'get'
  })
}


export function checkOptionListByIds(obj) {
  return request({
    url: '/admin/checkOption/listByIds',
    method: 'post',
    data: obj
  })
}
